<?php /*a:3:{s:66:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\transport\index.html";i:1591758938;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\header.html";i:1571626691;s:69:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\admin_items.html";i:1566788179;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DSShop单店铺商城系统后台</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>








<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>地区管理</h3>
                <h5></h5>
            </div>
            <?php if($admin_item): ?>
<ul class="tab-base ds-row">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
    <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
        </div>
    </div>
    
    <a class="btn btn-blue right" href="<?php echo url('Transport/add',['type'=>app('request')->get('type')]); ?>"><?php echo htmlentities(lang('transport_tpl_add')); ?> </a>
    
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom">
            <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
            <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
        </div>
        <ul>
            <li><?php echo htmlentities(lang('instructions_sale_area')); ?></li>
        </ul>
    </div>
    
    
    <?php if(!(empty($transport_list) || (($transport_list instanceof \think\Collection || $transport_list instanceof \think\Paginator ) && $transport_list->isEmpty()))): ?>
<table class="ds-default-table order">
    <thead>
        <tr>
            <th class="w20"></th>
            <th class="cell-area tl"><?php echo htmlentities(lang('transport_to')); ?></th>
            <th class="w150"><?php echo htmlentities(lang('transport_price')); ?></th>
        </tr>
    </thead>
    <?php if(is_array($transport_list) || $transport_list instanceof \think\Collection || $transport_list instanceof \think\Paginator): if( count($transport_list)==0 ) : echo "" ;else: foreach($transport_list as $key=>$v): ?>
    <tbody>
        <tr>
            <td colspan="20" class="sep-row"></td>
        </tr>
        <tr>
            <th colspan="20">
                <?php if(app('request')->param('type') == 'select'): ?>
                <a class="ml5 dssc-btn-mini dssc-btn-orange" data-param="{name:'<?php echo htmlentities($v['transport_title']); ?>',id:'<?php echo htmlentities($v['transport_id']); ?>',price:'<?php echo htmlentities($v['transport_id']['price']); ?>'}" href="javascript:void(0)"><i class="iconfont">&#xe6f1;</i><?php echo htmlentities(lang('transport_applay')); ?></span></a>
                <?php endif; ?>
    <h3><?php echo htmlentities($v['transport_title']); ?>==<?php echo htmlentities($v['transport_id']); ?></h3>
    <span class="fr mr5">
        <time title="<?php echo htmlentities(lang('transport_tpl_edit_time')); ?>"><i class="iconfont">&#xe736;</i><?php echo date('Y-m-d H:i:s',$v['transport_updatetime']); ?></time>
        <a class="J_Clone dssc-btn-mini" href="javascript:void(0)" data-id="<?php echo htmlentities($v['transport_id']); ?>"><i class="iconfont">&#xe756;</i><?php echo htmlentities(lang('transport_tpl_copy')); ?></a>
        <a class="J_Modify dssc-btn-mini" href="javascript:void(0)" data-id="<?php echo htmlentities($v['transport_id']); ?>"><i class="iconfont">&#xe731;</i><?php echo htmlentities(lang('transport_tpl_edit')); ?></a>
        <a class="J_Delete dssc-btn-mini" href="javascript:void(0)" data-id="<?php echo htmlentities($v['transport_id']); ?>"><i class="iconfont">&#xe725;</i><?php echo htmlentities(lang('transport_tpl_del')); ?></a>
    </span>
</th>
</tr>
<?php if(!(empty($extend[$v['transport_id']]['data']) || (($extend[$v['transport_id']]['data'] instanceof \think\Collection || $extend[$v['transport_id']]['data'] instanceof \think\Paginator ) && $extend[$v['transport_id']]['data']->isEmpty()))): if(is_array($extend[$v['transport_id']]['data']) || $extend[$v['transport_id']]['data'] instanceof \think\Collection || $extend[$v['transport_id']]['data'] instanceof \think\Paginator): if( count($extend[$v['transport_id']]['data'])==0 ) : echo "" ;else: foreach($extend[$v['transport_id']]['data'] as $key=>$value): ?>
<tr>
    <td></td>
    <td class="cell-area tl"><?php echo htmlentities($value['transportext_area_name']); ?></td>
    <td><?php echo htmlentities($value['transportext_sprice']); ?></td>
</tr>
<?php endforeach; endif; else: echo "" ;endif; ?>
<?php endif; ?>
</tbody>
<?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<?php else: ?>
<div class="warning-option"><i class="iconfont">&#xe64c;</i><span><?php echo htmlentities(lang('no_record')); ?></span></div>
<?php endif; if(!(empty($transport_list) || (($transport_list instanceof \think\Collection || $transport_list instanceof \think\Paginator ) && $transport_list->isEmpty()))): ?>
<div class="pagination"><?php echo $show_page; ?></div>
<?php endif; ?>
    <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

<script>
    $(function(){
        $('a[class="J_Delete dssc-btn-mini"]').click(function(){
            var id = $(this).attr('data-id');
            if(typeof(id) == 'undefined') return false;
            ds_get_confirm('<?php echo htmlentities(lang('transport_del_confirm')); ?>','<?php echo url('Transport/delete'); ?>?id='+id);
        });

        $('a[class="J_Modify dssc-btn-mini"]').click(function(){
            var id = $(this).attr('data-id');
            if(typeof(id) == 'undefined') return false;
            $(this).attr('href','<?php echo url('Transport/edit'); ?>?id='+id);
            return true;
        });

        $('a[class="J_Clone dssc-btn-mini"]').click(function(){

            var id = $(this).attr('data-id');
            if(typeof(id) == 'undefined') return false;
            $(this).attr('href','<?php echo url('Transport/cloned'); ?>?id='+id);
            return true;
        });
        $('a[class="ml5 dssc-btn-mini dssc-btn-orange"]').click(function(){
            var data_str = '';
            eval('data_str = ' + $(this).attr('data-param'));
            $("#postageName", opener.document).css('display','inline-block').html(data_str.name);
            $("#transport_title", opener.document).val(data_str.name);
            $("#transport_id", opener.document).val(data_str.id);
            $("#g_freight", opener.document).val(data_str.price);
            window.close();
        });

    });
</script>
    
</div>


